Demo

Column

Description

An Example of Including A Tableau Dashboard in A R Markdown Dashboard

This dashboard shows a simple demonstration for Inserting a Tableau Figure from this website: WOW202246.

If you click the icon for sharing the dashboard (on the top left), you can get the link which is

https://public.tableau.com/views/WOW202246-Maps/Dashboard1?:language=en-US&:display_count=n&:origin=viz_share_link

Now, in order to make this tableau available in your R dashboard, you need to make some changes in the link above. Replace everything after language=en-US by language=en&:display_count=y&publish=yes&:showVizHome=no&:embed=true.

Then your link becomes

https://public.tableau.com/views/WOW202246-Maps/Dashboard1?:language=en&:display_count=y&publish=yes&:showVizHome=no&:embed=true

Now, we want to include this link in the HTML iframe. Here is the usage of the iframe.

<p algin="center">
<iframe src="Your Link" width = "1280" height = 960">
</iframe></p>

Thus the html code you need to insert the tableau dashboard is

<p align="center">
<iframe src="https://public.tableau.com/views/WOW202246-Maps/Dashboard1?:language=en&:display_count=y&publish=yes&:showVizHome=no&:embed=true" width="1070" height="910">
</iframe></p>

Note: You can use width and height argument to adjust the dimension of the dashboard inserted.

Click the Result tab on the top bar, you will see the dashboard inserted.

Result

---
title: "Markdown Tableau Demo"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
    source_code: embed
---

```{r setup, include=FALSE}
library(flexdashboard)
```

Demo 
===

Column {data-width=650}
---

### Description 

**An Example of Including A Tableau Dashboard in A R Markdown Dashboard**

<head>
    <base target="_blank">
</head>

This dashboard shows a simple demonstration for Inserting a Tableau Figure from this website:
[WOW202246](https://public.tableau.com/app/profile/hipstervizninja/viz/WOW202246-Maps/Dashboard1). 

If you click the icon for sharing the dashboard (on the top left), you can get the link which is 

```
https://public.tableau.com/views/WOW202246-Maps/Dashboard1?:language=en-US&:display_count=n&:origin=viz_share_link
```

Now, in order to make this tableau available in your R dashboard, you need to make some changes in the link above. Replace everything after <span Style="color:red">language=en-US</span> by <span Style="color:blue">language=en&:display_count=y&publish=yes&:showVizHome=no&:embed=true</span>.  

Then your link becomes

```
https://public.tableau.com/views/WOW202246-Maps/Dashboard1?:language=en&:display_count=y&publish=yes&:showVizHome=no&:embed=true
```

Now, we want to include this link in the HTML iframe. Here is the usage of the iframe. 

```
<p algin="center">
<iframe src="Your Link" width = "1280" height = 960">
</iframe></p>
```

Thus the html code you need to insert the tableau dashboard is 

```
<p align="center">
<iframe src="https://public.tableau.com/views/WOW202246-Maps/Dashboard1?:language=en&:display_count=y&publish=yes&:showVizHome=no&:embed=true" width="1070" height="910">
</iframe></p>
```

**Note:** You can use width and height argument to adjust the dimension of the dashboard inserted. 

Click the **Result** tab on the top bar, you will see the dashboard inserted. 


Result
===


<p align="center">
<iframe src="https://public.tableau.com/views/WOW202246-Maps/Dashboard1?:showVizHome=no&:embed=true" width="1070" height="910"></iframe></p>